using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace KFGame
{
    public class IKFEvent : MonoBehaviour
    {
        public virtual void OnEnable()
        {
            KF.Instantiation();
            KFEventManager.addListor(this);
        }
        public virtual void OnDisable()
        {
            KFEventManager.removeListor(this);
        }

        /// <summary> 
        /// 侦听接口 
        /// </summary>
        /// <param name="type"></param>
        /// <param name="e"></param>
        /// <returns>返回 true 中断后面接收者接收</returns>
        public virtual bool OnKFEvent(string type, KFEvent e)
        {
            return false;
        }
    }
}
